import axios from './axios';

function get(url, params) {
  return axios.sendRequest({
    url: url,
    method: 'get',
    params: params
  });
}

function post(url, data) {
  return axios.sendRequest({
    url: url,
    method: 'post',
    data: data
  });
}

export {
  get,
  post
};
